package com.liam.forum.utils;

import java.util.UUID;

/**
 * @Author: LiamLMK
 * @CreateTime: 2024-09-20
 * @Description: 生成随机字符串
 * @Version: 1.0
 */

public class UUIDUtil {
    /**
     * 生成标准UUID
     * @return
     */
    public static String UUID_36() {
        return UUID.randomUUID().toString();
    }

    /**
     * 生成32位UUID
     * @return
     */
    public static String UUID_32() {
        return UUID.randomUUID().toString().replace("-","");
    }
}
